// import { App } from 'vue'

import VMarkDown from '@/components/VMarkDown/index.vue'
import VSelect from '@/components/VSelect/index.vue'
import VUpload from '@/components/VUpload/index.vue'
const pluginList = {
    VMarkDown,VSelect,VUpload
}
const plugins = {
    install (App) {
        // 批量注册插件  改用自动引入
        // Object.entries(pluginList).forEach(([, v]) => {
        //     console.log('v=>',v,v.default)
        //     //App.use(v)
        //     App.component('VMarkDownss', v );
        // })
        for(let i in pluginList){
            App.component(i, pluginList[i] );
        }
    }
}

export default plugins